package com.whale.cloud.util.rest.dataengine;

import com.alibaba.fastjson.JSONObject;
import com.whale.cloud.util.rest.schema.Column;
import com.whale.cloud.util.rest.schema.Function;

import java.util.List;

/** Created by paco on 2017/5/27. */
public interface DataDisposeEngine {

  public long insert(String sql, Object[] param);

  public int update(String sql, Object[] param);

  public int delete(String sql, Object[] param);

  public JSONObject getJSONArray(
      Function function, List<Column> field, LogicExpression le, JSONObject param);

  public JSONObject getJSONObject(
      Function function, List<Column> field, LogicExpression le, JSONObject param);

}
